if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].DeleteProcessedTransactions') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].DeleteProcessedTransactions

GO

CREATE PROCEDURE dbo.DeleteProcessedTransactions
	@fromTranId bigint,
	@toTranId bigint
AS

DELETE FROM dbo.ChangeTransaction
WHERE ID between @fromTranId and @toTranId